﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SimpleScheduler.UI.UserControls
{
    public partial class Splitter : SplitContainer
    {
        public Splitter()
        {
            InitializeComponent();
            MouseEnter += new EventHandler(Splitter_MouseEnter);
            MouseLeave += new EventHandler(Splitter_MouseLeave);
        }

        void Splitter_MouseLeave(object sender, EventArgs e)
        {
            ((SplitContainer)sender).BackColor = SystemColors.Control;
        }

        void Splitter_MouseEnter(object sender, EventArgs e)
        {
            ((SplitContainer)sender).BackColor = SystemColors.ControlDark;
        }
    }
}
